package controller.listeners.mainWindow;



import model.MainWindowModel;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

import view.MainWindowView;
import view.ViewUtils;

public class MessageDblClickSelectionListener implements Listener {


	private MainWindowView _view;
	private MainWindowModel _model;
	
			public MessageDblClickSelectionListener(MainWindowView view,
					MainWindowModel model) {
				this._model = model;
				this._view = view;
			}
			
			@Override
			public void handleEvent(Event event) {
				ViewUtils.getInstance().openMessageWindow(_view.getMessage());
			}
		}